/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.degree_condition.entity;

import org.hibernate.validator.constraints.Length;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 授予学位情况Entity
 * @author hang
 * @version 2017-01-14
 */
public class TbDegreeCondition extends DataEntity<TbDegreeCondition> {
	
	private static final long serialVersionUID = 1L;
	private String major;		// 专业
	private String years;		// 年份
	private String personNum;		// 人数
	private Date createTime;		// 创建时间
	private Date updateTime;		// 更新时间
	
	public TbDegreeCondition() {
		super();
	}

	public TbDegreeCondition(String id){
		super(id);
	}

	@Length(min=0, max=64, message="专业长度必须介于 0 和 64 之间")
	public String getMajor() {
		return major;
	}

	public void setMajor(String major) {
		this.major = major;
	}
	
	@Length(min=0, max=20, message="年份长度必须介于 0 和 20 之间")
	public String getYears() {
		return years;
	}

	public void setYears(String years) {
		this.years = years;
	}
	
	@Length(min=0, max=20, message="人数长度必须介于 0 和 20 之间")
	public String getPersonNum() {
		return personNum;
	}

	public void setPersonNum(String personNum) {
		this.personNum = personNum;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	
}